<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        *{
            padding: 0;
            margin: 0;
        }
        input{
            width: 300px;
            height: 40px;
            border-radius: 10px;
            margin-left: 30px;
            margin-bottom: 30px;
        }
        p{
            font-size: 30px;
            margin-top: 20px;
            text-align: center;
        }
    </style>
</head>
<body>
    <div id="arr">
        <div class="box">
            <p>密码登陆</p>
        </div>
        <div class="box1">
            <input type="text" placeholder="手机/用户名" style="margin-top: 80px;" v-model="form.phone">
        </div>
        <div class="box1">
            <input type="password" placeholder="密码" v-model="form.pass">
        </div>
        <div class="box1">
            <input type="button" value="登陆" @click="deng">
        </div>
        
   
    
  

    </div>
    
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
 var V=new Vue({
  el:'#arr',
  data:{
    form:{phone:'',pass:''}

  },methods:{
    deng(){
        console.log('账号',this.form.phone);
        console.log('密码',this.form.pass);
        
    }
  }





 })



</script>